setAlwaysOnTop

abstract fun setAlwaysOnTop(block: DesignBlock, enabled: Boolean)

Update the block's always-on-top property. If true, this blocks's global sorting order is automatically adjusted to be higher than all other siblings without this property. If more than one block is set to be always-on-top, the child order decides which is on top. A page slice fails with BLOCK.TYPE_CANNOT_BE_ARRANGED, because its place in the page is its reading order.

Parameters

block

the block to update.

enabled

whether the block shall be always-on-top.